chore(fmt): rustfmt caps.rs + provider.rs to unblock the CI pipeline#5177
Conversation
upstream/main head (e780277) fails 'Rust Quality (fmt, clippy)' on pre-existing rustfmt violations landed by recent merges (caps.rs from tinyhumansai#5151's JSON-fence extraction; provider.rs from the lazy-toolkit resolver). Because the CI-lite 'PR CI Gate' needs rust-quality == success, and 'Rust Core Coverage' is gated behind the same, this fmt failure cascades: coverage/tests SKIP and the gate FAILS for every branch cut from current main — the whole merge pipeline is blocked, not just fmt cosmetics. Formatting-only (rustfmt --edition 2021), no logic change.
📝 WalkthroughWalkthroughThe pull request applies formatting-only updates to the lazy toolkit resolver and tinyflow JSON extraction code and tests. Types, cache behavior, parsing logic, test inputs, and assertions remain unchanged. ChangesFormatting updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
|
| Filename | Overview |
|---|---|
| src/openhuman/agent/harness/subagent_runner/ops/provider.rs | Formatting-only: field type annotation and Arc constructor call reformatted by rustfmt; no semantic change. |
| src/openhuman/tinyflows/caps.rs | Formatting-only: method chain wrap in extract_fenced_json_block and two test-site reformats; no semantic change. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR branches cut from main] --> B{rust-quality job}
B -- "BEFORE this PR\n(rustfmt violations)" --> C[rust-quality: FAILURE]
C --> D[rust-core-coverage: SKIPPED\ncondition not met]
C --> E[PR CI Gate: FAILED]
B -- "AFTER this PR\n(files formatted)" --> F[rust-quality: SUCCESS]
F --> G[rust-core-coverage: RUNS]
F --> H[PR CI Gate: PASSES]
Reviews (2): Last reviewed commit: "chore(fmt): rustfmt caps.rs + provider.r..." | Re-trigger Greptile
Summary
upstream/mainhead (e780277e7) currently failsRust Quality (fmt, clippy)on pre-existing rustfmt violations that landed with recent merges:src/openhuman/tinyflows/caps.rs— from Agent output_parser hard-fails whole workflow runs when the model's text is not valid JSON #5151 (the JSON-fence extraction helper).src/openhuman/agent/harness/subagent_runner/ops/provider.rs— from the lazy-toolkit resolver (Composio contract-gate never executes in sub-agent path — 'what's my latest email' loops forever (GMAIL_FETCH_EMAILS surfaced 51× never runs) #5119-era).Why this matters (it's not cosmetic)
In
.github/workflows/ci-lite.yml:rust-core-coverageis gatedif: … && needs['rust-quality'].result == 'success'— so when rust-quality fails, coverage + the Rust unit tests SKIP.PR CI Gatefails any needed job whose result is neithersuccessnorskipped— rust-quality =failuremakes the gate fail.Net effect: every branch cut from current main is blocked from merging and its tests never run. This fixes the root cause once.
Change
rustfmt --edition 2021on the two offending files. Formatting only — line-wrapping of long generic types / constructor calls. Zero logic change (verify: the diff is pure whitespace/line-breaks).Submission Checklist
Closes #NNN— N/A: pipeline hygiene, no issueImpact
Unblocks the CI-lite pipeline (coverage lane + PR CI Gate) for all in-flight PRs. No runtime, API, or behavior change.
Summary by CodeRabbit